package com.space.laboratory.provider;

import org.apache.dubbo.config.spring.context.annotation.EnableDubbo;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.stream.function.StreamBridge;
import org.springframework.context.annotation.Bean;

/**
 * @author <a href="mailto:414563035@qq.com">Bedroom</a>
 * @date 2021/3/29 5:37 下午
 */
@SpringBootApplication
@EnableDiscoveryClient
// 开启注解Dubbo功能 和 配置在application.yaml中选择配置一个即可
//@EnableDubbo
@MapperScan("com.space.laboratory.provider.infrastructure.gatewayimpl.database.dao") //Mybatis-Plus扫描的mapper路径
public class ProviderApplication {
    public static void main(String[] args) {
        SpringApplication.run(ProviderApplication.class, args);
    }
}
